package day_1126;

/**
 * @author oldliu
 * @since 1.0
 */
//员工类
public class Staff {
    private String no;
    private String name;
    private int age;
    private String position;
    private int salary;

    public Staff() {
    }

    public Staff(String no, String name, int age, String position, int salary) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.position = position;
        this.salary = salary;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", position='" + position + '\'' +
                ", salary=" + salary +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
}
